/** When your routing table is too long, you can split it into small modules **/

import Layout from "@/layout";
const componentsRouter = [
  {
    path: "/components",
    component: Layout,
    redirect: "noRedirect",
    name: "ComponentDemo",
    meta: {
      title: "统计页",
      icon: "component",
    },
    children: [
      {
        path: "manager",
        component: () => import("@/views/components-demo/manager"),
        name: "manager",
        meta: { title: "店家页" },
      },
      { // 需要跳转的页面
        path: "/components/details",
        component: () => import('@/views/components-demo/details/index'),
        name: "details",
        meta: { title: '详情页', icon: 'theme',  noCache: true },
        hidden: true // 是否显示在菜单
      },
    ],
  },
];

export default componentsRouter;
